<template>
	<div>
		<Header />
		<router-view />
		<Footer v-if="!route.meta.isHid" />
	</div>
</template>

<script lang="ts" setup>
import Header from "./components/header/index.vue";
import Footer from "./components/footer/index.vue";
import { useRoute } from "vue-router";
const route = useRoute(); //useRoute上面可以拿到meta，相当于vue2的$route,但是vue3中没有this了，所以也没有$.
console.log(route);
console.log(route.meta._value.isHid);
</script>

<style></style>
